# 打开文件 (w写入权限)
file = open("py059_file.txt", "r", encoding="utf-8")

# print(file.read())

while True:
    # 读取一行内容
    text = file.readline()
    print("text", text)
    if not text:
        break

print(text, end="")
